package com.atguigu.gmall.list.dao;

import com.atguigu.gmall.list.bean.Person;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2025/9/6 1:28
 */
@Repository
public interface PersonDao extends CrudRepository<Person,Long> {
    List<Person> findByNameLike(String name);
    List<Person> findByAddressLike(String address);
    List<Person> findByIdGreaterThan(Long id);
}
